using System;
using System.Collections.Generic;

namespace TimeTableManagement.Entities
{
	public class Tb_Timetable
	{
	    public Tb_Timetable()
		{
			this.Tb_CourseRegister = new List<Tb_CourseRegister>();
		}

		public int id { get; set; }
		public int id_term { get; set; }
		public int id_course { get; set; }
		public int id_lecturer { get; set; }
		public int id_room { get; set; }
		public int id_slot { get; set; }
		public bool status { get; set; }
		public int count { get; set; }
		public virtual Tb_Config Tb_Config { get; set; }
		public virtual Tb_Course Tb_Course { get; set; }
		public virtual ICollection<Tb_CourseRegister> Tb_CourseRegister { get; set; }
		public virtual Tb_People Tb_People { get; set; }
		public virtual Tb_Room Tb_Room { get; set; }
		public virtual Tb_Slot Tb_Slot { get; set; }
	}
    /// <summary>
    /// Anh xa vao JSON theo cau truc 
    /// [{"id_course":id_course,"code_course":"Ma mon hoc",""name_course":"ten mon hoc", "id_lecturer":2,"name_lecturer:"ten giang vien","id_room":3,"name_room":"ten room","id_slot":4,"name_slot":"ten slot"}]
    /// </summary>
    public class TimeTable
    {
        public int id_course { get; set; }
        public int id_lecturer { get; set; }
        public int id_room { get; set; }
        public int id_slot { get; set; }
        public bool yesorno { get; set; }
        public String code_course { get; set; }
        public String name_course { get; set; }
        public String name_lecturer { get; set; }
        public String name_room { get; set; }
        public String name_slot { get; set; }
    }
}

